import request from '@/utils/request'

// 员工列表
export function getStaffLists(query) {
    return request({
        url: '/joining/busin.Staff/getLists',
        method: 'post',
        params: query
    })
}
// 部门列表(全部，不分页)
export function getSectorListsAll(query) {
    return request({
        url: '/joining/busin.Position/getSectorListsAll',
        method: 'post',
        params: query
    })
}
//添加/修改 员工
export function setStaff(query) {
    return request({
        url: '/joining/busin.Staff/setInfo',
        method: 'post',
        params: query
    })
}
// 员工状态 启用/禁用
export function setStaffStatus(query) {
    return request({
        url: '/joining/busin.Staff/setStatus',
        method: 'post',
        params: query
    })
}
// 删除员工
export function delStaff(query) {
    return request({
        url: '/joining/busin.Staff/delInfo',
        method: 'post',
        params: query
    })
}
// 员工详情
export function getStaffInfo(query) {
    return request({
        url: '/agency/api.Basics/getStaffInfo',
        method: 'post',
        params: query
    })
}

// 员工 修改密码
export function retrievePass(query) {
    return request({
        url: '/joining/busin.Staff/setLoginPass',
        method: 'post',
        params: query
    })
}

//  修改别的员工密码
export function setStaffLoginPass(query) {
    return request({
        url: '/joining/busin.Staff/setStaffLoginPass',
        method: 'post',
        params: query
    })
}

//  PC_员工_开启/关闭聊天
export function setHuanxinChat(query) {
    return request({
        url: '/joining/busin.Staff/setHuanxinChat',
        method: 'post',
        params: query
    })
}